import { createApp } from 'vue'
import App from './App.vue'
import router from "@/router";
import axios from "axios";

/**
 * axios 拦截器
 */
axios.interceptors.request.use(function (config) {
    console.log("请求：", config);
    return config;
}, error => {
    console.log(error);
});

axios.interceptors.response.use(function (response) {
    console.log("返回结果：", response);
    return response;
}, error => {
    console.log(error);
});

console.log("环境：", process.env.NODE_ENV)

createApp(App).use(router).mount('#app')
